<?php
/**
 * Created by PhpStorm.
 * User: DianWang
 * Date: 2018/12/7
 * Time: 14:01
 */

function get_min_from_market_level($marketLevel, $id)
{
    if ($id == 1) {
        return 500;
    } else {
        if ($marketLevel == "地级") {
            return 2000;
        } else {
            return 1000;
        }
    }
}

function set_decimal($val)
{
    return round($val / 10000, 4);
}

function set_float($val)
{
    return round($val, 4);
}